package com.hfi.ood.atmsimulator.model;

import com.hfi.ood.atmsimulator.transaction.Transaction;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ChangLiang
 * @date 2020/5/21
 */
public class Printer {

    private List<Transaction> list = new ArrayList<>();

    public void addTransaction(Transaction transaction) {
        list.add(transaction);
    }

    public void print() {
        list.stream().forEach(System.err::println);
    }
}
